﻿<script type="text/javascript">

//ddtreemenu.createTree(treeid, enablepersist, opt_persist_in_days (default is 1))
ddtreemenu.createTree("treemenu2", true, 5)

</script>
<p><%= link_to "panel view",{:controller => :board, :action => :index, :id => @person.userName} %></p>
<ul id="treemenu2" class="treeview">
		<%= render(:partial => "panel", :collection => @person.panels) %>	
</ul>
<a href="javascript:ddtreemenu.flatten('treemenu2', 'expand')">Expand All</a> 
<a href="javascript:ddtreemenu.flatten('treemenu2', 'contact')">Contact All</a>


